package com.authine.cloudpivot.ext.applicationservice;


import com.authine.cloudpivot.ext.domain.impl.HandleExpireGoodsTask;
import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.*;

/**
 * @program: gomro
 * @description:
 * @author: wlw
 * @create: 2021-10-18 19:58
 **/
@Slf4j
public class HandleExpireGoodsService {
    private static  ScheduledExecutorService service = Executors.newScheduledThreadPool(1);

    static{
        service.scheduleWithFixedDelay(new HandleExpireGoodsTask(), 2, 2, TimeUnit.HOURS);
    }
}
